package com.bjsxt.mappers;

import com.bjsxt.domain.User;
import com.bjsxt.dto.UserDto;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;


@Mapper(componentModel = "spring")
public interface UserDtoMapper {

 UserDtoMapper INSTANCE =  Mappers.getMapper(UserDtoMapper.class);
  UserDto convert2Dto(User source);
  User  convert2Entity(UserDto source);


    List<UserDto> convert2Dto( List<User> source);
    List<User>  convert2Entity( List<UserDto> source);

}
